package com.yujistu.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.yujistu.framework.helper.DialogHelper;
import com.yujistu.framework.http.YuJiHttpCenter;

/**
 * Created by S3YOGA on 2015/11/3.
 */
public class BaseActivity extends FragmentActivity {

     private YuJiHttpCenter  center;
     private DialogHelper  mDialogHelper;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mDialogHelper = new DialogHelper(this);
        center = new YuJiHttpCenter();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    public YuJiHttpCenter getHttpCenter() {
        return center;
    }

    public void toast(String msg, int period) {
        mDialogHelper.toast(msg, period);
    }
}
